
import logging.config

with open('logging.conf',encoding='utf-8') as f:
    logging.config.fileConfig(f)
logger = logging.getLogger('main')
logger.info('INFO日志')